package cn.edu.sgu.www.mhxysy.service.xingshi.impl;

import cn.edu.sgu.www.mhxysy.mapper.xingshi.ChongwuEquipmentXingshiMapper;
import cn.edu.sgu.www.mhxysy.service.xingshi.ChongwuEquipmentXingshiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class ChongwuEquipmentXingshiServiceImpl implements ChongwuEquipmentXingshiService {

    private final ChongwuEquipmentXingshiMapper chongwuEquipmentXingshiMapper;

    @Autowired
    public ChongwuEquipmentXingshiServiceImpl(ChongwuEquipmentXingshiMapper chongwuEquipmentXingshiMapper) {
        this.chongwuEquipmentXingshiMapper = chongwuEquipmentXingshiMapper;
    }

    @Override
    public List<String> selectInlay(Integer xingshiId) {
        if (xingshiId == null) {
            return new ArrayList<>();
        }

        return chongwuEquipmentXingshiMapper.selectInlay(xingshiId);
    }

}